import {Flex,Button,Modal} from "antd";
import {useState} from "react";
import CreateLink from "./CreateLink.tsx";
const Side=()=>{
    const [linkList,setLinkList]=useState([])
    const [showLinkModal,setShowLinkModal]=useState(false)
    return (
        <>
            <Flex>
                <Button onClick={()=>{setShowLinkModal(true)}}>
                    新建
                </Button>
            </Flex>
            <Flex vertical>
                {linkList}
            </Flex>
            <Modal open={showLinkModal} onCancel={()=>{setShowLinkModal(false)}}>
                <CreateLink/>
            </Modal>
        </>
    )
}
export default Side;